const Base = require("./dxgwbass.js");
module.exports = class extends Base {
  async indexAction() {
    if (this.ctx.origin.indexOf("hrxndq") >= 0) {
      this.ctx.redirect('/hlxn/index');
      return
    }
    if (this.ctx.origin.indexOf("kreston-yida") >= 0) {
      this.ctx.redirect('/yida/index');
      return
    }
    if (this.ctx.origin.indexOf("9centstudy") >= 0) {
      this.ctx.redirect('/admin#/login');
      return
    }


    let webConfig = this.model("webConfig");
    let arlist = await webConfig.getdxcase();
    const jjner = JSON.parse(JSON.stringify(arlist)).reverse()
    this.assign({
      caseLsit: arlist,
      jjner
    })

    return this.display();
  }
};